<template>
  <ul class="news_list">
    <li>编号：{{ query.id }}</li>
    <li>标题：{{ query.title }}</li>
    <li>内容：{{ query.content }}</li>
  </ul>
</template>

<script lang="ts" setup name="Details">
  import { toRefs } from 'vue';
  import { useRoute } from 'vue-router';


  const route = useRoute()
  let {query} = toRefs(route)

</script>

<style scoped>
.news_list{
  list-style: none;
  padding-left: 20px;
  height: 300px;
  width: 600px;
  border-radius: 10px;
  border: 3px solid skyblue;
  padding: 10px 20px;

}
.news_list li{
  line-height: 30px;
  font-size: 18px;
}
</style>